package com.liang.jiekou.controller;


import com.liang.jiekou.entity.CMSMC;
import com.liang.jiekou.service.CMSMCService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "仓库控制器")
@RestController
@RequestMapping("/ck")
public class CMSMCController {
@Resource
private CMSMCService cmsmcService;


    @ApiOperation("根据仓库查询相关信息")
    @GetMapping("/selectCMSMC")
    public CMSMC  select(@RequestParam String MC001){
        return cmsmcService.select(MC001);
    }

    @ApiOperation("查询全部的仓库信息")
    @GetMapping("/selectCMSMC/all")
    public List<CMSMC>  selectall(){
        return cmsmcService.selectall();
    }

}
